<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="上传设计文件" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script src="/js/popup_ext.js"></script>
<script language="javascript">
	function doCancel(){
		window.close();
	}
	function doShow(){
		if(document.getElementById("detailDiv").style.display==""){
			document.getElementById("detailDiv").style.display="none";
			document.getElementById("showLink").innerHTML="显示详细信息";
		}else{
			document.getElementById("detailDiv").style.display="";
			document.getElementById("showLink").innerHTML="隐藏详细信息";
		}
	}
	function doInit(){
		
	}
	//AccessoryList使用
	function refreshAccWin(){
		if(popRetVal!=null){
			document.getElementById("accessoryFrm").contentWindow.refreshWin();
		}
	}
	function doDelAcc(id){
		if(popRetVal!=null){
			document.getElementById("accessoryFrm").contentWindow.doDelAct(id);
		}
	}
	function doCopAcc(id){
		if(popRetVal!=null){
			document.getElementById("accessoryFrm").contentWindow.doCopAct(id);
		}
	}
	function showAccImg(fileName){
		window.open(fileName,"_blank");
	}
</script>
</head>
<body  oncontextmenu="return false" onload="doInit();" class="sheet modal-dialog" style=" padding-top:10px;text-align:center;" >
<div id="bodyDiv" class="sheet-main" style="width:860px;margin:auto;text-align:left;">
  <div class="sheet-list" style="width:100%">
    <div class="modal-main search-business">
		<div style="width:100%;">
			<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
 				<tr>
 					<td style="width:33%" rowspan="2"></td>
 					<td style="width:33%;text-align:center" rowspan="2"><h2>上传设计文件</h2></td>
 					<td style="width:34%" class="tr">
 						编号：${record.businessBill.billCode}
 					</td>
 				</tr>
 				<tr>
 					<td class="tr">订货日期：<fmt:formatDate value="${record.businessBill.orderDate}" pattern="yyyy-MM-dd HH:mm"/></td>
 				</tr>
 			</table>
 			
 			<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
			    <tr>
 					<td class="InfoTitleDivider"></td>
 				</tr>
			</table>
 			
			<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
				<tr>
			      	<th style="width:6%">客户：</th>
			      	<td style="width:40%">${record.clientName}</td>
			    	<td class="tr" style="width:54%">合同号：${record.businessBill.contractCode}</td>
			    </tr>
			</table>
			
			<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
			    <tr>
 					<td class="InfoTitleDivider"></td>
 				</tr>
			</table>
			
			<c:set var="BUSINESS_BILL_ITEM_LIST_TYPE" value="SIMPLE" />				
			<%@ include file="../inc/BusinessBillItemList.jsp"%>		
			
			<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
			    <tr>
 					<td class="InfoTitleDivider"></td>
 				</tr>
			</table>
			
			<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-a2 BillElseInfo">
				<tr>
					<th>部门：</th>
					<td >${record.departmentName}</th>
					<th>安装要求：</th>
			      	<td>${record.businessBill.setupRequire}</td>
					<th>摘要：</th>
			      	<td >${record.businessBill.content}</td>
				</tr>
				<tr>
					<th>业务员：</td>
					<td >${record.businessBill.managerName}</td>
					<th>提货要求：</th>
			      	<td >${record.businessBill.ladingRequire}</td>
			      	<th>备注：</th>
			      	<td>${record.businessBill.mark}</td>
				</tr>
				<tr>
					<th>设计员：</td>
					<td >${record.businessBill.designerNameStr}</td>
					<th>交货日期：</th>
			    	<td ><c:if test="${record.businessBill.deliverDate!=null}"><fmt:formatDate value="${record.businessBill.deliverDate}" pattern="yyyy-MM-dd HH:mm"/></c:if></td>
			    	<th>&nbsp;</th>
			      	<td>&nbsp;</td>
				</tr>
			</table>
			
			<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
			    <tr>
 					<td class="InfoTitleDivider"></td>
 				</tr>
			</table>
			<iframe name="accessoryFrm" id="accessoryFrm" scrolling="no" frameborder="0" height="0" width="100%" src="/business/AccessoryList.ihtm?acc_type=COOPER;DESIGN&agent_type=BUSINESS_BILL&agent_id=${record.businessBill.id}&edit_flag=1&ext_id=${wcId}"></iframe>
			<div class="blank12">&nbsp;</div>
			<p class="give">
				<span>开单人：${record.businessBill.createrName} <c:if test="${record.businessBill.createTime!=null}"><fmt:formatDate value="${record.businessBill.createTime}" pattern="yyyy-MM-dd HH:mm"/></c:if></span>
				<span>审核人：<c:if test="${record.businessBillExt.examinerId!=0}">${record.businessBillExt.examinerName} <c:if test="${record.businessBillExt.examineTime!=null}"><fmt:formatDate value="${record.businessBillExt.examineTime}" pattern="yyyy-MM-dd HH:mm"/></c:if></c:if></span>
				<span>结清：${record.businessBillExt.closerName} <fmt:formatDate value="${record.businessBillExt.closeTime}" pattern="yyyy-MM-dd HH:mm"/></span>
				<span>最后打印：<c:if test="${record.businessBillExt.lastPrinter!=null && record.businessBillExt.lastPrinter!=''}">${record.businessBillExt.lastPrinter} / 已打印${record.businessBillExt.printNum}次</c:if></span>
				<span>修改人：<c:if test="${record.businessBill.modifierId!=0}">${record.businessBill.modifierName} <fmt:formatDate value="${record.businessBill.modifyTime}" pattern="yyyy-MM-dd HH:mm"/></c:if></span>
				<span>单据帐套：${record.tallySetName}</span>
			</p>
		</div>
  	</div>
  </div> 
</div>
</body>
</html>

